package net.zoneland.knowledge.controller;


import net.zoneland.knowledge.model.PilotPreach;
import net.zoneland.knowledge.model.ResponseResult;
import net.zoneland.knowledge.service.PilotPreachService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController()
@RequestMapping("/pilotPreach")
public class PilotPreachController {

    @Autowired
    private PilotPreachService pilotPreachService;

    /**
     * 获取领航宣讲数据.
     * @param pilotPreach 领航宣讲实体类.
     * @return 结果集
     */
    @PostMapping("/getPilotPreach")
    public ResponseResult getPilotPreach(final PilotPreach pilotPreach) {
        final ResponseResult res = new ResponseResult();
        res.setData(pilotPreachService.getPilotPreach(pilotPreach));
        return res;
    }
}
